package phidgetmotion.gui.util;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

public class NamedBoxLayoutPanel extends JPanel {
	private static final long serialVersionUID = -1022580817105754292L;

	public NamedBoxLayoutPanel(String name, int axis){
		setBorder(new TitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), name));
		setLayout(new BoxLayout(this,axis));
	}
}
